<?php
$cs = Yii::app()->getClientScript();
$cs->registerCSSFile(Yii::app()->request->baseUrl . '/css/mobile/booking_find.css');
?>
<div data-role='page' id='demo-page'>
    <div data-role="header">
        <h1>比邻平台</h1>
    </div>
    <div data-role='content' id='mainContent' style="padding: 5px;">
<?php
$screen = Blyn::app()->getUIManager()->getCurrentScreen();
$wxControl = $screen->getChildControl('BUIWXControl_1');
$wxControl->renderView('booking_home', array());
?>
<legend> 
    预订支付<small>|<?php echo $wxControl->getLink(array('name' => '我的订单记录', 'id' => 'showMyBookingList_1'), array('paymentStatus' => 'paid')); ?>|</small>
    <small><?php echo $wxControl->getLink(array('name' => '未支付订单', 'id' => 'showMyBookingList_1'), array('paymentStatus' => 'unpaid')); ?></small>

</legend>

<div class="well text-danger">
    <p>恭喜，你已经完成了支付！</p>
    <table data-role="table" id="table-custom-2" data-mode="columntoggle" class="ui-body-d ui-shadow table-stripe ui-responsive" data-column-btn-theme="b" data-column-btn-text="显示列" data-column-popup-theme="a">
        <thead>
          <tr>
            <th data-priority="1">项目</th>
            <th data-priority="1">内容</th>
          </tr>
        </thead>
        <tbody>
          <tr class="ui-body-a">
            <td>交易号：</td>
            <td><?php echo '00001'; ?></td>
          </tr>
          <tr>
            <td>预订项数量：</td>
            <td><?php echo $paidCount; ?></td>
          </tr>
          <tr>
            <td>支付总金额：</td>
            <td><?php echo $paidMoney; ?></td>
          </tr>
        </tbody>
      </table>
    <p>进入我的订单记录查看结果！</p>
    <?php
    echo $wxControl->getLink(array('name' => '查看我的预订', 'id' => 'showPayBooking_1'), array(
        'htmlOptions' => array('class'=>'ui-btn ui-corner-all ui-mini')));
    ?>
</div>
</div>
<div data-role="footer" data-position="fixed">
    <div data-role="navbar">
        <ul>
            <li><a href="#" id="find" data-icon="search">分类查询</a></li>
            <li><a href="#" id="mybooking" data-icon="shop" class="ui-btn-active">我的预订</a></li>
            <li><a href="#" data-icon="gear">其他</a></li>
        </ul>
    </div><!-- /navbar -->
</div><!-- /footer -->